#![feature(thread_id_value)]
#![feature(phantom_variance_markers)]
#![allow(dead_code, unused_imports, unused_variables, unused_parens)]

mod engine;
mod tutorials;

// use tutorials::sync_prim::prims::*;
// use tutorials::wgpu::wgpueg::WgpuApp;
// use tutorials::req::reqwest_eg::req_main;
// use tutorials::syn::syn_eg::test as syn_test;
// use tutorials::tests::test::test as test_test;
use tutorials::bevy::app::app_main;

// use engine::app_oop::*;
// use engine::app_ecs::*;

// use winit::event_loop::{ControlFlow, EventLoop};
// use winit::window::WindowAttributes;

fn main() {
    app_main();
}


// fn main() {
//     println!("main begin");
//     tracing_subscriber::fmt::init();
//     let eloop = EventLoop::new().unwrap();
//     eloop.set_control_flow(ControlFlow::Poll);

//     // let mut app = AppOop::default();
//     let mut app = WgpuApp::default();
//     app.set_wnd_attrs(WindowAttributes::default());

//     let r = eloop.run_app(&mut app);
//     if let Err(e) = r {
//         println!("event loop error: {}", e);
//     }
//     println!("main end");
// }